package com.gbk.clickhouseservicestruct.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.myweb.ck.mapping.ChTable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;


@Data

@Builder
@NoArgsConstructor
@AllArgsConstructor
@ChTable(name = "tig.T_TIG_QUEUE")
public class TIG_QUEUE  {


    /**
     * ID 主键 唯一 报警表id
     */
    private String id;

    /**
     * 路口ID
     */
    private String crossId;


    @Temporal(TemporalType.TIMESTAMP)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date dectime;

    /**
     * 车道号
     */
    private int laneno;

    /**
     * 排队长度
     */
    private int queuelen;

    /**
     * 排队起始位置
     */
    private int queuestartpos;

    /**
     * 车道内车辆数
     */
    private int queuevehnum;

    /**
     * 车辆实时平均速度
     */
    private int vehspeed;

    /**
     * 检测器id
     */
    private String decid;

    /**
     * 持续时间
     */
    private int contsec;

    /**
     * 车道类型
     */
    private int lanedirtype;

    /**
     * 持续时间
     */
    private int contsec2;


    /**
     * 检测器检测区域号
     */
    private int segno;


}
